Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.

feat: name worktree exec repos by their path from the worktree - #30

Merged
gold-silver-copper merged 1 commit into
mainfrom
harmony-2712-worktree-exec-root
Oct 24, 2026
Merged

gold-silver-copper merged 1 commit into
mainfrom
harmony-2712-worktree-exec-root

Conversation

@gold-silver-copper

@gold-silver-copper gold-silver-copper commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What

meta git worktree exec passed no root_dir to loop_lib, so it named the worktree's root repo by its folder (t1) and children by basename, while meta git status in the same worktree shows . (t1). It now passes the worktree dir as the root, so the naming matches every other command that prints per-repo lines through loop_lib.

With gitkb/loop_lib#13 (names repos by their path from the root) children show as ./agent, ./vendor/foo; on loop_lib main they keep their basename and only the root line changes to . (t1). No ordering needed between the two PRs.

Both callers of build_loop_config passed the same Some(git_env::git_env()), so it now sets that itself (keeps it under clippy's 7-argument limit). JSON fields are unchanged (directory is the full path). With a root set, loop_lib's parallel mode puts the root first in the results array, as it already does outside a worktree (before: the root sorted among the children by folder name). No consumer depends on that order (meta_mcp finds results by field).

Before / after

Scratch meta workspace, worktree t1 with ., agent, alpha: meta git worktree exec t1 -- git status -s

Before:

✓ t1
✓ agent
✓ alpha

After (with loop_lib#13):

✓ . (t1)
✓ ./agent
✓ ./alpha

Verification

  • cargo test -p meta_git_cli, clippy -D warnings, fmt.
  • Built meta + meta-git from this branch and ran the command above.

Part of tasks/harmony-2712, with gitkb/loop_lib#13, gitkb/meta_project_cli#17 and gitkb/meta_cli#37 (meta exec in a worktree).

Implements [[tasks/harmony-2712]]

meta git worktree exec passed no root to loop_lib, so it named the root
repo by its folder (t1) and children by basename, unlike meta git status
in the same worktree. Pass the worktree dir as the root: '. (t1)',
./agent. Both callers passed the same git env, so build_loop_config sets
it itself.

Implements [[tasks/harmony-2712]]
@coderabbitai

coderabbitai Bot commented Oct 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: d9f4cda6-38e2-4941-b713-adabe0169e3d
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant